<?php
echo $this->form;

if (!is_null($this->error)) {
	echo "<script type=\"text/javascript\">errorMessage(\"{$this->error}\");</script>";
}